#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
'''
@File    :   akshare_test.py
@Time    :   2023/03/27 10:06:36
@Author  :   youle
@Email   :   a_fly0505@163.com
@Copyright : 侵权必究
'''

import akshare as ak
import pandas as pd
import requests
from bs4 import BeautifulSoup
from akshare.utils import demjson

import sys

print(sys.path)

# fund_etf_spot_em_df = ak.fund_etf_spot_em()
# print(fund_etf_spot_em_df)

# fund_etf_fund_daily_em_df = ak.fund_etf_fund_daily_em()
# print(fund_etf_fund_daily_em_df)

# fund_etf_hist_min_em_df = ak.fund_etf_hist_min_em(symbol="512360", period="60", adjust="")
# print(fund_etf_hist_min_em_df)

# 教育513360   银行512800
try:
    fund_portfolio_hold_em_df = ak.fund_portfolio_hold_em(symbol="512800", date="2020")
    print(fund_portfolio_hold_em_df)
except :
    print("ak.fund_portfolio_hold_em {}".format("513360"))
finally:
    print("=====") 
